<?php 
/*
This template displays one photo, along with links to the next and previous photo (if available)
*/
global $SilasFlickrPlugin;
?>

<?php include($SilasFlickrPlugin->getDisplayTemplate('/photoalbum-nav.html'));?>


<h2><?php echo $photo['title']?></h2>

<div id="photo">
<img src="<?php echo $sizes['Medium']['source']?>" width="<?php echo $sizes['Medium']['width']?>" height="<?php echo $sizes['Medium']['height']?>"/>
<?php if (is_array($photo['notes']['note'])):?>
<div id="notes">
    <?php foreach ($photo['notes']['note'] as $note):?>
    <div class="note" style="top:<?php echo $note['y']?>px;left:<?php echo $note['x']?>px;">
        <div class="hover2"><div class="hover" style="width:<?php echo $note['w']?>px;height:<?php echo $note['h']?>px;"></div></div>
        <div class="text"><?php echo $note['_value']?></div>
    </div>
    <?php endforeach;?>
</div>
<?php endif;?>
</div>
<p><?php echo $photo['description']?></p>

<?php include($SilasFlickrPlugin->getDisplayTemplate('/photoalbum-photometa.html'));?>

<?php include($SilasFlickrPlugin->getDisplayTemplate('/photoalbum-comments.html')); ?>

<?php include($SilasFlickrPlugin->getDisplayTemplate('/photoalbum-context.html')); ?>


<div class="flickr-meta-links">
<a href="http://www.flickr.com/photos/<?php echo $photo['owner']['nsid'];?>/<?php echo $photo['id'];?>/" target="_blank">View this photo on Flickr</a>
</div>